﻿@{
    ViewBag.Title = "Paving Block System";
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}
<div class="container" style="margin-top: 150px;">
    <form class="form-signin" method="post" action="/Login/Authentication">
        <h2 class="form-signin-heading">
            Please sign in</h2>
        <input id="user" name="user" type="text" class="input-block-level" placeholder="Email address"
               runat="server" />
        <input id="password" name="password" type="password" class="input-block-level" placeholder="Password"
               runat="server" />
        <label class="checkbox">
            <input type="checkbox" name="RememberMe" id="RememberMe" value="true" />
            Remember me
        </label>
        <input type="submit" id="btn_submit" text="Sign in" class="btn btn-large btn-primary"
               value="Login" />
    </form>
</div>

<script type="text/javascript">

    $(document).ready(function () {

        var dlgDiv = $(".form-signin");
        var dlgWidth = dlgDiv.width();
        var dlgHeight = dlgDiv.height();

        dlgDiv[0].style.top = Math.round(($(window).height() - dlgHeight) / 2) + "px";
        dlgDiv[0].style.left = Math.round(($(window).width() - dlgWidth) / 2) + "px";

        $("#user").val("dewies");
        $("#password").val("1234");

    });

</script>
